package com.utrailer.wlt.order.controller;

import com.utrailer.common.rest.ResultVO;
import com.utrailer.wlt.order.model.vo.OrderVO;
import com.utrailer.wlt.order.service.OrderService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author Chen Song
 * @since
 */
@RestController
@RequestMapping("order")
@Log4j2
public class OrderController {

    @Autowired
    private OrderService orderService;

    @RequestMapping("list")
    public ResultVO<String> list(@RequestBody OrderVO vo) {
        log.info(vo);
        orderService.list(vo);
        return ResultVO.success("orderList");
    }

}
